<h1>会员中心</h1>
<div></div>
<script>
  if (new Date().getTime() > localStorage.getItem("expires")) {
    localStorage.removeItem("uname");
  }
  let uname = localStorage.getItem("uname") || sessionStorage.getItem("uname");
  if (uname) {
    document.querySelector(
      "div"
    ).innerHTML = `你好${uname}<a href='./loginout.html'>点击退出</a>`;
  } else {
    document.querySelector("div").innerText = "还没登录 大傻叉";
  }
</script>
